home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20000824-20010305 / 000236_news@columbia.edu _Fri Feb 2 13:15:03 2001.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Return-Path: <news@columbia.edu>
  2. Received: from watsun.cc.columbia.edu (watsun.cc.columbia.edu [128.59.39.2])
  3.     by uhaligani.cc.columbia.edu (8.9.3/8.9.3) with ESMTP id NAA29822
  4.     for <kermit.misc@cpunix.cc.columbia.edu>; Fri, 2 Feb 2001 13:15:03 -0500 (EST)
  5. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
  6.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id NAA29630
  7.     for <kermit.misc@watsun.cc.columbia.edu>; Fri, 2 Feb 2001 13:15:02 -0500 (EST)
  8. Received: (from news@localhost)
  9.     by newsmaster.cc.columbia.edu (8.9.3/8.9.3) id NAA12601
  10.     for kermit.misc@watsun.cc.columbia.edu; Fri, 2 Feb 2001 13:02:27 -0500 (EST)
  11. X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
  12. From: fdc@columbia.edu (Frank da Cruz)
  13. Subject: Re: K95 differences with DOS product - security issue?
  14. Date: 2 Feb 2001 18:02:23 GMT
  15. Organization: Columbia University
  16. Message-ID: <95esnf$c9m$1@newsmaster.cc.columbia.edu>
  17. To: kermit.misc@columbia.edu
  18.  
  19. In article <0dCe6.1760$wa5.45285522@news.randori.com>,
  20. bpark <bparkbpark@hotmail.com> wrote:
  21. : Talking to a POS system that runs in host mode I can do the following with
  22. : 3.14 "rem cd c:\database" and it works.
  23. : Using K95 1.1.20, I get "-Unable to change directory"
  24. : Some directories can be gotten to using either package.
  25. : This occurs whether doing this over a modem or a null modem connection.
  26. : I have no problem believing that this is keyed to some sort of
  27. : privilege/security/access issue coded in by the POS writers but am curious
  28. : as to how the default 3.14 package gets by it but the 95 doesn't.
  29. This is the result of the unfortunate coincidence that "\" is both the
  30. DOS/Windows directory separator and Kermit's command "escape" character.
  31. (Almost) anytime the command parser of K95 (and C-Kermit, same parser)
  32. see "\" in a command, they treat it as a signal that a variable or other
  33. special quantity follows, which is to be evaluated before it is used.
  34. The parsing rules in MS-DOS Kermit are similar, but subtly different,
  35. since it is built from an entirely separate code base.
  36.  
  37. Of course K95 gives you some options for working around the problem,
  38. including:
  39.  
  40.  1. Double any backslash that is to be taken literally:
  41.  
  42.       rem cd c:\\database
  43.  
  44.  2. Put the pathname in a variable and then refer to the variable:
  45.  
  46.       define path c:\database
  47.       rem cd \m(path)
  48.  
  49.  3. Temporarily disable backslash processing:
  50.  
  51.       set command quoting off
  52.       rem cd c:\database
  53.       set command quoting on
  54.  
  55. - Frank